﻿using System;

namespace Aeon.Configuration
{
    /// <summary>
    /// Marks a class as a device configuration type.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public sealed class DeviceConfigurationAttribute : Attribute
    {
        /// <summary>
        /// Initializes a new instance of the DeviceConfigurationAttribute class.
        /// </summary>
        public DeviceConfigurationAttribute()
        {
        }
        /// <summary>
        /// Initializes a new instance of the DeviceConfigurationAttribute class.
        /// </summary>
        /// <param name="id">Unique ID of the device configuration.</param>
        public DeviceConfigurationAttribute(string id)
        {
            this.Id = id;
        }

        /// <summary>
        /// Gets the device configuration's unique ID.
        /// </summary>
        public string Id { get; private set; }
    }
}
